home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PRINTER / MERGIT21.ARJ / TUTOR.TXT < prev    next >
Text File  |  1992-02-18  |  26KB  |  438 lines

  1.                            TUTOR FOR MERGEIT
  2. We will use the image files eschrB1.pcx and eschrB2.pcx. The initial values
  3. file eschrB.ini makes use of the automatic merging process. The file
  4. eschr-01.ini trims off the reference blocks from the image margins and is
  5. used for the manual merging examples.
  6. Start the program from the directory where it is located, with the
  7. command=>   Mergeit /eschrB.ini   OR     Mergeit /eschr-01.ini
  8.  
  9. Sequence of program operations:
  10.   a) Read initial values file, read beginning of lst image.
  11.   b) Check disk space for required space for output file.
  12.   c) Analyze top edge of first image for black reference blocks
  13.   c) Calculate image cutting values, check against first image size available.
  14.   d) Analyze top edge of second image for black reference blocks
  15.   e) Calculate image cutting values, check against second image size available.
  16.   f) Determine RAM space required to rotate image when merging.
  17.      If space is available, prompt user if they want to rotate and merge.
  18.      If not enough RAM is available, prompt user if they want to cut the
  19.      image shorter,use diskspace to store intermediate image file, or
  20.      not rotate at all before merging.
  21.  
  22.  
  23. The popular Escher print we will use for the tutorial was scanned in at 200DPI
  24. with the print in the landscape orientation. The right half was scanned first,
  25. as is the convention for MergeIt. Normally we would merge the scans together
  26. without rotation, but for tutorial purposes, we'll work with it both ways.
  27. When rotated, the right side of the image will be on top, the top of the print
  28. will be on the left side. To do an unrotated trim tutorial, answer "N" until
  29. you are prompted to approve of an unrotated merge.
  30. Normally you would use automatic trimming to eliminate tedious user
  31. adjustments. The first two tutorials are done without this assistance for
  32. instructional purposes. The next two tutorials show the usefulness of
  33. automatic trimming.
  34. The last two tutorials do manual merging of the same images and utilize
  35. automatic trimming.
  36.  
  37. You will probably find it helpful to print out the two pcx image files to
  38. get oriented to how MergeIt works before doing the trimming. Normally you
  39. would have the original hardcopy image to refer to.
  40.  
  41. Simple audio feedback is given during the user trim process while viewing the
  42. merged image region:
  43. A simple beep indicates the start of a secondary input operation and menu
  44. (insert/delete, auto trimming, etc.) which requires more input to finish.
  45. A double beep indicates the end of a secondary menu or that the primary menu
  46. command is complete by itself (i.e. whole image movement by cursor keys).
  47. A triple beep, after a <cr> indicates the end of user trimming and either
  48. the redisplay of the current viewed region or a continuation of the merge
  49. process to the next merge image section.
  50. A single, low pitched beep indicates an error, perhaps a trim or movement
  51. limit has been reached.
  52.  
  53.      Automatic Merging With Rotated Image Without Automatic Trimming
  54.  
  55. (The phrase "Nx" where N is a number means do the operation N times,
  56. i.e. 3x= do it 3 times.)
  57. Use initial values file "Eschrb.Ini". Answer yes to the question of doing a
  58. rotated merge by pressing <cr> (i.e. <enter>). Confirm the building of a
  59. composite image with the specified height by pressing <cr> again.
  60. The right most 100 lines of the unrotated image will be shown as the top of
  61. the rotated image. The most useful trim at this point might be to add/delete a
  62. few lines from the top of the image. Press <up> cursor key 3x, a double beep
  63. will follow each entry (indicating a complete user operation). Press "enter"
  64. (<cr>) to see the effect on the image. Wait for a single beep which signals
  65. the end of image redisplay process. To undo this change, press <down> cursor
  66. key 3x followed by <cr> to see the results. To accept this image without
  67. further change, and continue the merge process, press <cr>.
  68.  
  69. The screen will revert to text mode, describing the merge process: how
  70. many lines must be merged in total and how many are in this current scanned
  71. image section.
  72. When a multiple of 128 lines are finished, this will be displayed until the
  73. final (left most) 100 lines of this scanned image section are reached. If
  74. you press <cr> at this time, when the next 128 lines are finished, the process
  75. will pause and a short menu will be displayed. You may quit the program or
  76. continue the process at this time. To continue press 'V' or <cr>.
  77. Finally, the screen will return to a graphic mode and the last 100 lines of
  78. the image will be shown. This display process ends with a single beep as
  79. before. At this point you have 2 useful operations: trim the bottom edge up or
  80. down, or change the view region to a more critical section.
  81.  
  82. Set the image movement step to 4 by pressing "4". Note the change in the
  83. "triangle=4" in the top line of the menu. Press the <down> cursor key 1x (2
  84. beeps). Press <cr> to see additional 4 image lines at the merge boundary. Set
  85. the movement step to 1. You may repeat this <down> input 3x more, after that
  86. you will hear a lower pitched, longer beep when you press the <down> key, this
  87. signifies the edge of available image to view and merge. Press <cr> to see the
  88. modifications. You may note that the last lines showed the image masked off by
  89. a paper guide I had placed at the edge of the printed image when I scanned.
  90.  
  91. Set the movement step to 5. Press the <up> cursor key 1x to remove most of the
  92. extra image lines, then press <cr> to see modifications . (We'll leave a few
  93. extra lines here for tutorial purposes.) To finally accept the viewed image,
  94. press <cr> without making any more changes.
  95.  
  96. A small merge edge marker will appear in the center of the screen, denoting
  97. the boundary between this and the next scanned section. A few seconds will
  98. pass while the next image section is processed. Soon the right most 100
  99. vertical lines (before rotation) of the next image section will be shown
  100. as the top 100 lines of the rotated image.
  101. The right view shows a little too much the redundant image at the merge. At
  102. this point we can ONLY trim the new image, i.e. only the image below the
  103. marker. Set the movement step to 1. Press the <up> key 1x to move the image
  104. up. Press <cr> to see the modification.
  105.  
  106. The left view shows some left-right misalignment. Before doing modifications,
  107. lets shift the left view to the left edge (beginning) of the image. Press
  108. <Alt-V> to bring the alter view menu up. Select the left region by <Home>.
  109. Move it to the left with <Home>. Press <cr> to see the new region. Clearly we
  110. need to move the whole lower image left. Set the movement step to 4. Press the
  111. <left> cursor key 1x. Press <cr> to see the effects.
  112. While the left black image border is well aligned, we could improve the
  113. alignment of the ribbon-like detail 1 1/2" from the left edge with an
  114. insertion. Press <Insert>, then move the marker left with the <Home> key 7x.
  115. Note that if you press this key once more, you get the error beep since you
  116. are at the movement limit. Press the <spacebar> 6x to move the marker 48
  117. pixels to the right (8 pixels at a time). Press '+' to insert one line. Press
  118. <cr> to return to the general menu. Press <cr> to see the change.
  119.  
  120. The curved black line 3 1/2" from the left display edge (on a 14" screen) is
  121. misaligned. Press <Delete> followed by the <Home> key 6x. Use the <spacebar>
  122. 9x to place the marker in the best position (i.e. least noticeable) and press
  123. '+' 3x. End this menu and see the changes with <cr> 2x.
  124.  
  125. The right view shows some misalignment. Bring up the insert process with
  126. the <Insert> key. Press <Home> 3x. The marker will sit in the middle of the
  127. screen, between the two view regions. Press the <spacebar> 8x to move the
  128. marker into the right view region. Press '+' 1x. Move the marker a little
  129. further right with the <spacebar> 4x. Press '+' 1x. End the insert process
  130. with <cr> and see the changes with another <cr>. Accept this image with a
  131. final <cr>.
  132.  
  133. The screen will revert to text mode again and messages about the merge process
  134. will be displayed The final screen is the left edge of the second image (the
  135. bottom edge of the rotated image). The views are of the opposite corners,
  136. which is the result of what we selected before. While there are no more images
  137. to merge with this edge, you may trim this edge up/down with the <up>/<down>
  138. cursor keys. The limit in the down direction depends on how the image was
  139. scanned and cut; there may be up to 16 extra lines. In this case, there are
  140. less than 6 extra lines.
  141.  
  142. Set the movement step to 1. If you attempt to press the <down> key more than
  143. 5x a single low beep will signal the end of the image available to work with.
  144. After making any changes and viewing the modifications, a <cr> without
  145. additional trimming will signal the finishing of the merge process and return
  146. you to DOS.
  147.  
  148.      Automatic Merging With UnRotated Image Without Automatic Trimming
  149.  
  150. Use initial values file "Eschrb.Ini". Answer no to the question of doing a
  151. rotated merge by pressing 'N'. Answer yes to the question of doing an
  152. unrotated merge by pressing <cr>.
  153. There is only one merge region, which is shown on the right half of the
  154. screen. The left side of the screen only shows the left edge of the image
  155. which is not trimable. With a three or more piece merge process, two merge
  156. regions are shown at a time, both trimable.
  157. The first 200 lines of the merged image is shown.
  158. Note the small region marker which looks somewhat like: "___ __ _"  The solid
  159. side points to the merge region and indicates the image to the right of the
  160. merge is currently selected for trimming.
  161.  
  162. This region is a little high. Set the movement step size to 5 by pressing "5".
  163. Press the <down> cursor key 1x, a double beep
  164. will follow each entry. Press <cr> to see the shifted region and merge (a
  165. triple beep indicates the trimming process is over- the merge process will
  166. either continue or the current viewed region will be redone).
  167.  
  168. When the modified image is fully displayed, a single beep will sound,
  169. prompting you be more input. We overcompensated in our shift according to the
  170. top black/white border. Set the movement step to 1.  Press the <up> cursor key
  171. 1x (but do NOT press <cr> yet). Note that the region to the right of the merge
  172. is lower than the left by 2 or 3 lines in the center portion. We can delete 2
  173. lines above this region and below the top border. Press the <delete> key (1
  174. beep will follow). The image line to be modified will appear as inverted video
  175. on the screen. Note that the inverse video effect does NOT run all the way to
  176. the actual boundary between scanned image sections. The marked line is
  177. initially 1 line below the last displayed image line. We can move this line
  178. marker up/down 20 lines at a time with the <pg up>/<pg dn> keys. You may move
  179. the marker 1 line down with the space bar, 1 line up with the <backspace> key.
  180. Since the marker visually moves, no audio feedback is given. Press the <pg up>
  181. key 6x. To delete at the marked line, press the '+' key (1 beep will follow).
  182. To delete another line and end this deletion operation, press '+' followed by
  183. <cr> (2 beeps will found to indicate the end of this operation). Press <cr>
  184. again to see the modifications (3 beeps will follow).
  185.  
  186. After hearing 1 beep which signals the end of the redisplay process,
  187. press <cr> to accept the image and continue merging.
  188.  
  189. The next 200 lines will be displayed.
  190. The image to the left of the merge is a little below the image on the right.
  191. We could add a few lines on the right side, but for practice let us delete 2
  192. lines in the left image. First select that image by pressing the <home> key
  193. 1x. The region marker will move to the left side of the merge (followed by a
  194. double beep). Then start the delete operation by pressing the <delete> key (1
  195. beep will follow) and the marked line will appear at the bottom of the
  196. selected image. The line marker can be moved up/down 20 lines at a time with
  197. the <pg up>/<pg dn> keys. Press the <pg up> key 9x, followed by a '+' to
  198. delete 1 line (1 beep). Then press '+' and <cr> to delete a second line and
  199. end the delete operation (2 beeps).
  200.  
  201. To see the effects of this operation, press <cr> (3 beeps-trimming input
  202. ended, image redisplayed).
  203.  
  204. When the display is finished, a single beep will sound and the region marker
  205. will appear below the right side of the merge.
  206.  
  207. To accept this merge region and continue the process, press <cr> (3 beeps).
  208.  
  209. The next 200 lines will be displayed. While this region looks OK as is, since
  210. this is a tutorial, lets modify it anyway by moving the image on the right
  211. into the merge with the <left> cursor key. Press this key 2x (2 beeps will
  212. occur with each entry).
  213. Press <cr> to see the modified image.
  214.  
  215. Perhaps the return to the beginning image view surprised you? Since you moved
  216. the whole right image left, the whole merged image file had to be rebuilt.
  217. To accept this merged region, press <cr>.
  218.  
  219. After the second display is finished, lets undo the previous operation, move
  220. the right image away from the merge. Press the <right> cursor key 2x (2 beeps
  221. with each entry). This time, to speed up the rebuild process and avoid viewing
  222. the previous image, enter 'B' (build the image again w/o view until the
  223. current image) (2 beeps will follow).
  224.  
  225. Then press <cr> to do the rebuilding and redisplay the current merge
  226. section.
  227.  
  228. While you're waiting for the rebuilding, perhaps you realize it is expedient
  229. to do any whole scanned image motion early on in the merge process. If the
  230. original image scanning is done with a rigid left guide edge, whole scanned
  231. section motion is seldom required after the initial displayed 200 lines.
  232. Typically, only line insert/delete trimming is required which may be
  233. performed automatically.
  234.  
  235. The screen will revert to text mode and the building of the previous
  236. 200 lines will begin. Progress of the merge will be displayed by messages
  237. every 128 and 200 lines. Then the screen will return to graphics and the
  238. current modified merge region will be displayed.
  239.  
  240. Press <cr> to accept this region and the next ones until you get near the
  241. bottom edge of the image when the black border of the right image will be
  242. lower than the border of the left. To delete 3 lines in the right image, press
  243. <delete> (1 beep) followed by <pg up> 9x. The marked line will move near the
  244. top of the viewed region. Enter '+' 3x, followed by <cr> to perform  3
  245. deletions and end the deletion process (2 beeps).
  246.  
  247. Finally, lets insert a line in the left image. First, press <home> to select
  248. the left image. Then press <insert>, followed by <pg up> 4x. Press '+' and <cr>
  249. to perform 1 insert and end the insert process.
  250.  
  251. Press <cr> to see all the modifications.
  252.  
  253. Press <cr> to accept region.
  254.  
  255. Most of screen will go black, followed by a few remaining white lines at
  256. top. Press <cr> to accept these and finish merge.
  257.  
  258.  
  259.       Automatic Merging With UnRotated Image With Automatic Trimming
  260.  
  261. Use initial values file "Eschrb.Ini". Answer no to the question of doing a
  262. rotated merge by pressing 'N'. Answer yes to the question of doing an
  263. unrotated merge by pressing <cr>.
  264. There is only one merge region, which is shown on the right half of the
  265. screen. The left side of the screen only shows the left edge of the image
  266. which is not trimable. With a three or more piece merge process, two merge
  267. regions are shown at a time, both trimable.
  268. The first 200 lines of the merged image is shown. The top black edge on
  269. the left image is too low. Select the left image with the <Home> key.
  270. Set the image movement step size to 4 by pressing "4".
  271. Move this image up 4 lines by pressing the <up> cursor key 1x. End user input
  272. with <cr>.
  273. The merged image will be rebuilt and displayed. The top edge looks good.
  274. Since we are using automatic merging by use of the top edge reference blocks,
  275. we can assume that image overlap is correct. (If you are merging without the
  276. help of reference blocks, you should set the overlap correctly before turning
  277. on auto trimming).
  278. Now turn auto trimming on and initialize trimming in the currently viewed
  279. region by bringing up the appropriate menu <Alt-T> and pressing "I". Press
  280. <cr> to rebuild the merged image and display. The display will show a good
  281. merge. As you successively build the image and view the process (by pressing
  282. <cr>), the image will remain aligned across the boundary.
  283.  
  284.        Automatic Merging With Rotated Image With Automatic Trimming
  285.  
  286. Use initial values file "Eschrb.Ini". Answer yes to the question of doing a
  287. rotated merge by pressing <cr>. Confirm the building of a composite image
  288. with the specified height by pressing <cr> again.
  289. The right most 100 lines of the unrotated image will be shown as the top of
  290. the rotated image. Press <cr> to pass to the bottom edge of the 1st rotated
  291. image. We want to shift the left half of the displayed regions to the left
  292. edge of the rotated image. Enter <Alt-V> to bring up the alter view menu.
  293. Press <Home> to select the left view to shift. Press <Home> to shift this view
  294. to the left. Press <cr> to see the new view (of the left edge). Press <cr> to
  295. see the top of the next image. We need to move this new image left 4x. Set the
  296. movement step size to 4 by pressing "4". Press <left> cursor key 1x followed
  297. by <cr> to see the result.
  298.  
  299. The left edge looks good but there is clearly some misalignment as the image
  300. moves to the right. Turn auto trimming on and initialize the process in the
  301. current region by going into the auto trim menu with <Alt-T> and then pressing
  302. "I". The status line will show that the auto trimming process is ON and that
  303. if we redo the currently displayed image, auto trimming will process the
  304. boundary region. Press <cr> to see the results.
  305.  
  306. Alignment will improve and we can continue the merge process by pressing <cr>.
  307. When the final bottom edge is shown, press <cr> to finish the merging.
  308.  
  309.         Manual Merging With Rotated Image With Automatic Trimming
  310.  
  311. Use the initial values file 'Eschr-01.Ini'. Answer yes to the question of
  312. doing a rotated merge by pressing <cr>. Confirm the building of a composite
  313. image with the specified height by pressing <cr> again.
  314. When viewing the top 1st image region, move the view to the beginning edge of
  315. the scanned section (which is now on the left side). We accomplish this by
  316. changing the view of the left displayed region to the left edge of the image.
  317. Press <Alt-V> for the alter view menu. Select the left region with <Home> and
  318. move the view to the left with <Home>. Press <cr> to see the new view. Press
  319. <cr> to accept the image. The screen will revert to text mode as the middle
  320. section of this image is built. The final 100 lines of this 1st image will
  321. then be displayed. Press <cr> to accept the bottom edge of the 1st rotated
  322. scanned image section.
  323.  
  324. The top of the 2nd image needs to be moved up. Set the movement step size to 4
  325. lines at a time by pressing "4". Press <up> cursor key 3x. Press <cr> to see
  326. modification. Some left movement is necessary. Set movement step size to 1 by
  327. pressing "1". Press <Left> cursor key 2x. Press <cr> to see modification. We
  328. are close to alignment. Do final alignment by pressing <Left> cursor key 1x
  329. and <up> cursor key 1x. Press <cr> to see modification. While alignment is
  330. good, we can turn on automatic trimming to perfect the merging. Press <Alt T>
  331. to bring up automatic trimming menu. Press "I" to initiate an auto trimming.
  332. Press <cr> to see results of trimming.
  333.  
  334. Accept this new merge with <cr>. When the bottom of the image is displayed,
  335. accept this with a final <cr>.
  336.  
  337.        Manual Merging With UnRotated Image With Automatic Trimming
  338.  
  339. Use initial values file "Eschr-01.Ini". Answer no to the question of doing a
  340. rotated merge by pressing 'N'. Answer yes to the question of doing an
  341. unrotated merge by pressing <cr>.
  342. The left side of the merged region (which is shown on the right side of the
  343. screen) is too low. Select this region with <Home>. Set the movement size to 4
  344. lines at a time by pressing to "4". Press <up> cursor key 2x. See the adjusted
  345. image by pressing <cr>. The left region needs a little more movement up.
  346. Select this region with the <Home> key. Set the movement size to 1 by
  347. pressing "1". Move the region up by pressing the <up> key 2x. Press <cr> to
  348. see the results. The misalignment of the light, slanted ribbon-like detail
  349. indicates that there is too much redundant image at the boundary. Set the
  350. movement size to 4. We will move both regions closer together. Move the right
  351. region to the left by pressing the <Left> cursor key. Select the left region
  352. by pressing <Home>. Move this region to the other one by pressing the <Right>
  353. cursor key. Press <cr> to see the results. Regions need to be a little closer
  354. together. Set movement size to 1. Move the right region to the left by
  355. pressing <Left> cursor key 2x. Press <cr> to see results. Alignment is not too
  356. bad. Initialize the automatic trim process to improve the merge by pressing
  357. <Alt T> followed by "I". Press <cr> to see results of auto trimming. Accept
  358. the merge with <cr>. The subsequent merge regions will stay in alignment thru
  359. the auto trim process. Accept each region with <cr>. (The last displayed
  360. region will be a small white area.)
  361.  
  362.              Examining Reference Block Image Analysis
  363.  
  364. This is an optional part of the tutorial, hopefully you won't need to peek
  365. into the details of image analysis for determining the black reference
  366. blocks. If you are curious, then make a copy of the initial values file
  367. "EschrB.Ini" to "EschrBB.Ini" (or whatever name you want). Then edit it
  368. with an ascii text editor, changing the 3rd number on the 4th line from
  369. 0 to 1000. This will cause each image line that is analyzed for reference
  370. block determination to be displayed for 1000 millisecs (1 second).
  371. Restart MergeIt with the new initial values file.
  372. Once a line's analysis is displayed, pressing <cr> will hold this display.
  373. Otherwise the next line will be shown after a pause of 1000 millisecs. Restart
  374. the merge program with the edited initial values file. As soon as the first
  375. line analysis is shown, press <cr> to hold this screen.
  376.  
  377. At the top of the screen is the index of the line being shown and the label
  378. for the following 5 lines of image information: Left Side. To determine the
  379. location of the reference blocks, about 1.5" of the image line is analyzed
  380. starting at the left and right edges. These 5 lines display each image dot as
  381. a 0 (=black) or 1 (=white). They are arranged with 70 values/line divided into
  382. groups of 10 separated by ",". The inverse video dot values indicates the
  383. beginning and end of the reference block as determined by the program for that
  384. line. (Note that both line indices and dot indices start at 0).
  385. Below this line data is a summary of reference block information. "Left
  386. Blk Ht/Bot=" refers to the height of the left reference block at this point in
  387. the analysis and the line index of the bottom of the reference block. At this
  388. point, the height of the block is only 1 and no bottom has been reached
  389. (index=0). Similar information is displayed for the right reference block.
  390. The next couple of lines display the dot indices on this line for the
  391. reference block start dots and the block width in dots. Note that for both the
  392. left and right blocks, the start dot is for the block's left side.
  393.  
  394. The last line is a help line for user input:
  395. <cr>: the analysis will simply continue.
  396. "F" : the line by line display will continue but will pause for 1/4 of the
  397.       present pause time.
  398. "S" : the line by line display will continue but will pause for 4x the
  399.       present pause time.
  400. "B" : the line by line display will be terminated, only the summary of analysis
  401.       for each image will be shown.
  402.  
  403. Continue viewing the line analysis until line index 31.
  404.  
  405. This line determines the bottom of the left reference block. The black line
  406. segment is too short. Note that the left block bottom is now shown to be
  407. at line index 30 (the previous line). The start and width dot information
  408. for the left block on this line is replaced with the phrase "L Blk defined".
  409. In the continuing line analysis for the right reference block, no more
  410. analysis will be done on the left reference block.
  411.  
  412. Continue viewing the line analysis until line index 36.
  413.  
  414. This line determines the bottom of the right reference block. Line analysis
  415. will stop at this point.
  416. A summary of the analysis will follow, showing 15 lines of reference block
  417. information at a time. The dot indices for edge and width will be listed for
  418. the left and right reference blocks. Press <cr> to see the next 15 lines of
  419. information. The main thing to look for is the stable reference block location
  420. and size for each line. The last line or two may be off
  421. After all lines are shown, average values for these dot indices will be
  422. displayed.
  423. Finally, calculated image cut parameters will be listed, again by dot indices,
  424. for the X and Y dimensions.
  425. For each dimension, the cut indices are listed first, separated by "..".
  426. The last value is the size of the original scanned image. If a calculated
  427. cut parameter is beyond the image size, it will be flagged with a large value
  428. typically >60000.
  429.  
  430. The last line is a help line for user input. Similar to above, you have the
  431. choice of faster (F), slower (S), or continue (<cr>).
  432.  
  433. Press <cr> and as soon as a line's analysis appears, press <cr> again. Then
  434. press "B" to bypass continued line by line displays. Only the final summary
  435. will be shown. To not do the actual image merging, answer the questions about
  436. how to merge with "N".
  437.  
  438.